Position measuring device and a method for operating a position measuring device

ABSTRACT

The invention relates to a position measuring device ( 100 ), which supplies a multidigit code word (P) to a numeric control ( 300 ) via a serial interface ( 14 ). To determine the current functional state of the position measuring device ( 100 ) instantaneous values of analogue sampled signals (S 6 , S 7 ) are also serially transmitted as multidigit amplitude-proportional code words (D 6 , D 7 ). Said code words (D 6 , D 7 ) are supplied to a diagnostic device ( 200 ), which displays a Lissajous figure ( 201 ) derived from said words, or independently performs an evaluation and generates warnings or alarms.

[0001] The invention relates to a position measuring device in accordance with the preamble of claim 1, and to a method for operating a position measuring device in accordance with the preamble of claim 3.

[0002] A differentiation is made in connection with position measuring devices between incremental and absolute position measuring devices. With incremental position measuring devices, two analog or rectangular scanning signals, which are offset from each other by 90°, are present at the output, from which a measured position value is only formed in a follow-up electronic device. With absolute position measuring devices, an absolute measured position value is already present at the output and can be provided to a follow-up electronic device.

[0003] With both categories of position measuring devices, the dependability and functional status depends on the quality of the scanning signals. It is possible in connection with incremental position measuring devices which output analog scanning signals to directly test the quality of the scanning signals in that these are supplied to both channels of a dual-trace oscilloscope, so that a Lissajous figure is generated on the screen. The radius of the Lissajous figure is a measurement of the amplitudes, as well as the phase relationship of both scanning signals. This procedure is described in WO 90/02956 A1 and JP 02 036313 A.

[0004] A direct measurement is not possible with incremental position measuring devices, which issue two rectangular scanning signals which are phase-shifted by 90° with respect to each other. In JP 08 029197 A it is proposed to provide a selector switch in the position measuring device, so that either the rectangular scanning signals, or the analog scanning signals which are phase-shifted by 90° with respect to each other, can be output on two data lines. During measuring operations the rectangular scanning signals are transmitted, and the analog scanning signals for error diagnosis.

[0005] In accordance with EP 0 962 748 A1 and DE 199 11 774 A1, status information of the position measuring device is transmitted analogously superimposed on the incremental rectangular scanning signals. In this case the decoding of the superimposed signals is relatively difficult.

[0006] Absolute position measuring devices are described in DE 44 22 056 A1 and DE 43 42 377 A1. In accordance with DE 44 22 056 A1, several scanning signals of a periodic measuring graduation, which are phase-shifted with respect to each other, are provided to a counter for creating an absolute position. This absolute position is bit-serially transmitted by the position measuring device as a multi-digit code word to an electronic follow-up device on a data line. Monitoring circuits are additionally provided in the position measuring device which detect the functional status of the position measuring device and, as a function of this, provide abnormality information via the data line. The temperature and the voltage supply are here cited as monitoring options.

[0007] In accordance with DE 43 42 377 A1, besides the absolute position, alarm and warning reports are also serially transmitted on a data line to an electronic follow-up device. Monitoring of the functional status takes place in the position measuring device.

[0008] It is the object of the invention to disclose a position measuring device wherein, on the one hand, position information is present at the output, and in addition the position measuring device also makes information available by means of which the functional status of the position measuring device can be determined with simple means.

[0009] This object is attained by means of a position measuring device having the characteristics of claim 1.

[0010] The advantages of this position measuring device lie in that information regarding the position and the functional status can be transmitted over a common data line, or data channel. Moreover, the exclusively digital transmission assures a high degree of freedom from interference, and the interface modules can be produced in a cost-effective manner.

[0011] It is a further object of the invention to disclose a method for operating a position measuring device, by means of which measured position values, as well as data, can be transmitted from the position measuring device to an electronic follow-up device, by means of which it is possible to make statements regarding the functional status of the position measuring device.

[0012] This object is attained by means of the characteristics of claim 3.

[0013] The great advantage of this method lies in that only one data channel is required, over which the absolute position, as well as data regarding the functional status, can be transmitted. The evaluation of the data indicating the functional status can be performed through simple and customary arrangements. Changes in the status of the position measuring device can be detected, so that countermeasures can be taken in good time prior to a functional failure.

[0014] Advantageous embodiments of the invention will be explained in greater detail by means of the drawing figures.

[0015] Shown are in:

[0016]FIG. 1, a position measuring device in accordance with the invention,

[0017]FIG. 2, a diagnostic device of the position measuring device, and

[0018]FIG. 3, a protocol for a data transmission.

[0019] The absolute position measuring device 100 consists in a known manner for example of a scale 1 with several measuring graduations 2, 3, 4. The measuring graduations 2 and 3 are periodic graduations with different graduation periods, and the measuring graduation 4 is a non-periodic graduation, also called pseudo random code. Such a position measuring device is described in DE 41 23 722 A1.

[0020] The measuring graduations 2, 3, 4 are scanned by a common scanning head 5. The scanning head 5 contains scanning elements 6 to 10 for scanning the measuring graduations 2 to 4. The scanning elements 6 and 7 are assigned to the finest periodic measuring graduation 2 and each generates a sinusoidal analog scanning signal S6, S7 on its output, wherein the scanning signals S6 and S7 are phase-shifted by 90° in relation to each other. The periodic measuring graduation 3 is also scanned by scanning elements 8, 9 for the generation of two scanning signals S8 and S9, phase-shifted by 90° in relation to each other. The measuring graduation 4 is scanned by a diode line 10, wherein each line element emits an output signal. Only one line is schematically represented in FIG. 1 for these scanning signals S10.

[0021] The scanning signals S6 to S10 are conducted to a module 11 for forming an absolute position P. The module 11 can be a logic circuit or a microprocessor, in which the scanning signals S6 to S10 are combined in a known manner into an absolute position, so that a multi-digit code word P is present at the output, which defines the measured position value. This code word P is transmitted bit-serially on a data channel 12 to an electronic follow-up device, for example a control 300 of an NC machine. An output module 14—also called interface module or driver—is provided for this purpose. Preferably the position measuring device 100 is assigned to a movable element—in particularly directly to an electrical drive mechanism—of a machine tool, and the electronic follow-up device is a control 300 of an NC machine.

[0022] Alternatively the scale 1 can also only have several periodic measuring graduations in accordance with DE 41 25 865 A1, wherein the measured position value is constituted by a logical linkage of scanning signals of all periodic measuring graduations. However, the scale 1 can also only have a single periodic measuring graduation in accordance with DE 44 22 056 A1, wherein the absolute position is formed in the position measuring device from a directionally-dependent counting of pulses, derived from several scanning signals, which are phase-shifted with respect to each other.

[0023] In accordance with the invention, amplitude values of the two scanning signals S6 and S7 can be transmitted in digital form as multi-digit code words D6 and D7, each having a bit width of at least 4 bits in particular, but preferably at least 8 bits, over the same data channel 12 over which the code word P for the absolute position can be transmitted. For this purpose the instantaneous amplitudes of the analog scanning signals S6 and S7 are picked up at identical times by sample hold members 15 and 16. These picked-up analog values are each converted into amplitude-proportional digital code words D6 and D7, for which analog-digital converters 17 and 18 are schematically represented in FIG. 1. The amplitude-proportional code words D6 and D7 are present at the output module 14, so that they can also be serially transmitted over the data channel 12.

[0024] Because of these steps, the data required for determining the functional status of the position measuring device 100 are now available on the data channel 12. A check can now be performed whether the relative phase-shifted scanning signals S6=SA6*sin ωt and S7=SA7*cos ωt, are exactly phase-shifted by the set point phase position φ=90° in relation to each other, have the required signal amplitude, and whether the signal amplitudes SA6, SA7 of both scanning signals S6, S7 are identical. On the basis of these parameters it is possible to determine whether the scanning distance (distance between the scale 1 and the measuring head 5) has been set correctly, whether the scale 1 is soiled, or whether the scanning head 5 is twisted with respect to the scale (Moiré angle).

[0025] A diagnostic device 200 is connected with the data channel 12 for developing and representing the functional status of the position measuring device.

[0026] The radius R={square root}S6 ²+S7 ² is determined from a value pair D6, D7 of the scanning signals S6, S7, each of which were picked up at the same time. Successive value pairs provide a sequence of radius values R, which form a Lissajous FIG. 201. This Lissajous FIG. 201, which is the result of successively determined radius values R, is represented on a display screen 202. Only two radius values R1, R2 of the Lissajous FIG. 201 are represented in FIG. 2. In place of the Lissajous FIG. 201, a bar display in accordance with WO 90/02956 A1 or EP 0 836 080 A1 is also possible.

[0027] For displaying the picked-up scanning signals S6, S7, the code words D6, D7, or the standardized code value D6′, D7′, which will be described in greater detail later, can be digitally-analogously converted in the diagnostic device 200 and represented in a known manner as a Lissajous figure. This representation is particularly advantageous, since the quality of the scanning signals S6, S7 can be judged in accordance with the individual requirements. If this is not required to this extent, the diagnostic device 200 can make an evaluation on its own or additionally, and can correspondingly issue warning or alarm reports if predetermined criteria for the scanning signals S6, S7 are no longer met.

[0028] For performing an evaluation of the functional status in a particularly simple manner, a set point N for the amplitudes SA6 and SA7 is stored in the position measuring device 100. This has the advantage that a standardization of the output code words D6, D7 which is independent of the device can take place in the measuring device 100 in that the actual amplitudes of the scanning signals S6, S7, or D6, D7 are put in a direct correlation with the set point amplitude N:

[0029] S6/N=S6′

[0030] S7/N=S7′

[0031] Then the standardized amplitude values S6′ and S7′ are transmitted over the data channel 12 in the form of amplitude-proportional code words D6′, D7′. Because of this, the diagnostic device 200 can be designed uniformly for a multitude of different position measuring devices 100 and independent of the respective devices. It is possible to preset and display tolerance limits T1, T2 independently of device-specific absolute amplitudes of the scanning signals S6, S7.

[0032] Alternatively to this it is also possible to transmit the set point value N stored in the position measuring device to the diagnostic device 200 as a digital value and to perform standardization in the diagnostic device 200.

[0033] The preset tolerance limits T1, T2 can also be stored in the position measuring device 100 and can be transmitted as digital values to the diagnostic device 200 over the data channel 12.

[0034] The diagnostic device 200 can also be an integral component of the control 300 of an NC machine, in which case the display screen 202 preferably is the display screen of the control of the NC machine.

[0035] Dependable transmission is assured because of the digital data transmission since it is also possible to test the transmission of the amplitude-proportional code words D6, D7 by means of forming and transmitting a CRC (cyclic redundancy check).

[0036] A protocol for the signal transmission is schematically represented in FIG. 3. An absolute measured position value P is requested by the electronic follow-up device—control 300—by means of a command F. This request can take place via a separate signal line or via the bi-directionally designed data channel 12. For synchronizing the data transmission between the position measuring device 100 and the electronic follow-up device 300, a synchronously serial transmission is advantageously provided, wherein in a known manner a timing pulse line, not represented, is arranged between the position measuring device 100 and the electronic follow-up device 300 for transmitting the transmission clock rate from the electronic follow-up device 300 to the position measuring device 100.

[0037] Based on this command F, the position measuring device 100 transmits a data package consisting of a measured position value as a code word P and diagnostic information DW. The diagnostic information DW is advantageously composed of a block consisting of an address A and associated data D. To increase the transmission dependability, a check information—also called CRC—is formed from the measured position value P and the diagnostic information DW and is transmitted in the data package.

[0038] In the example represented, the diagnostic information only consists of an address A and associated data D. However, the data package can also contain several addresses and/or data.

[0039] One address A1 can determine the type of diagnostic operation, wherein the succeeding data Di are a list of the contents and sequence of the diagnostic information transmitted in the subsequent protocol. Further addresses characterize diagnostic values, for example the address A6 defines the subsequent transmission of the amplitude-proportional code word D6 of the scanning signal S6.

[0040] Following a further request F and the transmission of an actualized measured position value P, the amplitude-proportional code word D7 of the scanning signal S7, which is defined by the address A7, is transmitted. The two code words D6, D7 were derived from amplitude values of the two scanning signals S6, S7 picked up at the same time (time t1).

[0041] In the course of subsequent requests F, further diagnostic values, such as the code word connection quality D8 in the form of an assessed number (determined in accordance with EP 0 707 384 B1), or the temperature, can be transmitted in addition to the measured position value P by means of associated addresses A8. Once all diagnostic values associated with a time t1 and required for a valid diagnosis have been transmitted, a further value pair of the scanning signals S6, S7 in the form of amplitude-proportional code words D6, D7 is transmitted in the same form. The code words D6, D7 transmitted at that time are also derived from amplitude values of the two scanning signals S6, S7 picked up at the same time (time t2).

[0042] The diagnostic information DW can also be transmitted in partial blocks, for example with a first measured position value P the address with only a portion of the code word D6, and with a second measured position value P a further address with the remainder of the code word D6. In the same way it is also possible to transmit with a measured position value P only the address, and with the next measured position value P the associated data.

[0043] The data flow of diagnostic information DW which is associated with a common time t1 or t2, is advantageously delimited by a start information and an end information. In the example represented, this start or end information is the address A1 with the data Dl. The data D6 (t1), D7 (t1), D8 (t1), which had been picked up at a common time t1 and stored in the position measuring device 100, are contained between these pieces of information DW.

[0044] The data transmission over the data channel 12 can take place synchronously and serially, or asynchronously.

[0045] The data protocol represented has the advantage that the status control of the position measuring device 100 is possible online, i.e. also with the control 300 of an NC machine connected and operating. The diagnostic device 200 is connected upstream of the control 300 of the NC machine and, because of the method of addressing of the incoming data flow, filters the data D6 and D7 out for diagnosis. For this purpose the filter 203 is schematically represented in FIG. 2. The data P required for regulating the control 300 of the NC machine reach the control 300 of the NC machine. Thus, the diagnostic device 200 only listens in, so to speak.

[0046] Alternatively to the mode of operation represented, in one mode of operation the position measuring device 100 could transmit only absolute measured position values P, and in another mode of operation only diagnostic values with the value pairs of the scanning signals D6, D7 bit-serially over the serial data channel. Thus the position measuring device 100 can be switched between measuring operation and diagnostic operation. This switching can be performed by the diagnostic device 200 or the control 300 via the data channel 12, which is capable of functioning bi-directionally.

[0047] It is particularly advantageous if the instantaneous values of the scanning signals S6, S7 from the measuring graduation 2 with the smallest graduation period are used for the diagnosis of the position measuring device 100. However, it is also possible to output the instantaneous values of other measuring graduation tracks, or additionally the instantaneous values of further measuring graduation tracks 3 serially over the data channel 12.

[0048] The scanning signals S6, S7 to be monitored, which are phase-shifted with respect to each other, do not necessarily have to be derived from a single measuring graduation. They can also be derived from two separate measuring graduations, which are arranged spaced apart from each other and transversely to the measuring direction X. The set point value of the scanning signals S6, S7 which are phase-shifted with respect to each other is not limited to 90°, thus it is also possible, for example, to use amplitude-proportional code words from two or three scanning signals, which are phase-shifted with respect to each other by respectively 120°. The measuring graduations can be designed so they can be scanned opto-electrically, magnetically, inductively or capacitively. The position measuring device can be designed for linear or rotatory position measurement. 

1. A position measuring device (100), having scanning elements (6 to 10), which are assigned to at least one periodic measuring graduation (2, 3, 4) which can be moved in relation to it, and scan the latter, a module (11) for forming a measured position value, wherein scanning signals (S6 to S10) from several scanning elements (6 to 10) are present at this module (11), and a code word (P) defining the position is present at the output, an output module (14) for digitally outputting the code word (P) over a data channel (12), characterized by a conversion device (17, 18) for converting several analog scanning signals (S6, S7), which are phase-shifted in relation to each other, from scanning elements (6, 7) of at least one periodic measuring graduation (2) into multi-digit amplitude-proportional code words (D6, D6′, D7, D7′), wherein these code words (D6, D6′, D7, D7′) are also available at the output module (14) for outputting on the said data channel (12) and can be digitally transmitted by means of the output module (14) over the data channel (12).
 2. The position measuring device in accordance with claim 1, characterized in that memories (15, 16) are connected upstream of the output module (14), in which an amplitude value of one of the scanning signals (S6) picked up at a time (t1), and an amplitude value of a scanning signal (S7) which is phase-shifted in relation to it and was picked up at the same time (t1), are stored.
 3. A method for operating a position measuring device (100), wherein at least one periodic measuring graduation (2) is scanned for generating position-dependent scanning signals (S6, S7), and a measured position value is formed from several scanning signals (S6 to S10), which is transmitted as a code word (P) to an electronic follow-up device (200, 300) over a data channel (12), characterized in that several analog scanning signals (S6, (S7), which are phase-shifted in relation to each other are respectively converted into a multi-digit amplitude-proportional code word (D6, D6′, D7, D7′), and that the code word (P) defining the position, and the amplitude-proportional code words (D6, D6′, D7, D7′) are transmitted to the electronic follow-up device (200, 300) via the said data channel (12).
 4. The method in accordance with claim 3, characterized in that the amplitude-proportional code word (D6, D7) are derived from isochronous instantaneous values of two periodic scanning signals S6=SA6*sin ωt and S7=SA7*cos ωt.
 5. The method in accordance with claim 3 or 4, characterized in that the amplitude-proportional code word (D6, D7) are standardized in that the instantaneous values of the scanning signals (S6, S7) are related to a standard factor stored in the position measuring device (100).
 6. The method in accordance with one of claims 3 to 5, characterized in that a code word (P), which defines the position, is requested by the electronic follow-up device (300), and that thereupon the code word (P) defining the position, and in addition at least a portion of the amplitude-proportional code word (D6, D7), are transmitted over the data channel (12).
 7. The method in accordance with one of claims 3 to 6, characterized in that an address (A6, A7) is assigned to each amplitude-proportional code word (D6, D7), which is also transmitted over the data channel (12).
 8. The method in accordance with one of claims 3 to 7, characterized in that the amplitude-proportional code words (D6, D7) are supplied to a diagnostic device (200).
 9. The method in accordance with claim 8, characterized in that the diagnostic device (200) forms and displays values (R) for the amplitude height and/or the phase position of the scanning signals (S6, S&) from the amplitude-proportional code words (D6, D7).
 10. The method in accordance with one of claims 3 to 9, characterized in that the code words (P, D6, D7) are bit-serially transmitted on a single data line (12). 